import request from '@/utils/request'

// 查询可投诉的订单列表
export function listComplaintableOrders(query) {
  return request({
    url: '/quick/complaint/orders/list',
    method: 'post',
    data: query
  })
}

// 查询投诉列表
export function listComplaint(query) {
  return request({
    url: '/quick/complaint/list',
    method: 'get',
    params: query
  })
}

export function lissyttOrders(query) {
  return request({
    url: 'quick/getorder/list',
    method: 'get',
    params: query
  })
}


// 新增投诉
export function addComplaint(data) {
  return request({
    url: '/quick/complaint',
    method: 'post',
    data: data
  })
}
